<template>
  <div class="preview">
    <h2 class="time">2021</h2>
    <h1>传智教育重庆校区半年报</h1>
    <div class="sub-title">用爱成就每一位学员</div>

    <div class="grid">
      <div class="grid-item">
        <div class="salary">7480元/月</div>
        <p>平均薪资</p>
      </div>
      <div class="grid-item">
        <div class="salary">21000元/月</div>
        <p>最高薪资</p>
      </div>
      <div class="grid-item">
        <div class="salary">17人</div>
        <p>月薪过万</p>
      </div>
      <div class="grid-item">
        <div class="salary">85%</div>
        <p>就业率</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style scoped>
.preview {
  text-align: center;
}
.time {
  height: 100px;
  line-height: 100px;
  font-size: 40px;
}
h1 {
  height: 80px;
  line-height: 80px;
  font-size: 50px;
}
.sub-title {
  height: 120px;
  line-height: 120px;
  font-size: 30px;
  margin-bottom: 40px;
  color: #f7c467;
}
.grid {
  display: flex;
  justify-content: space-around;
}
.grid-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 20%;
  height: 300px;
  background-color: #ff6265;
  transition: all .5s;
}
.grid-item:hover {
  box-shadow: 0px 0px 30px #f0575a;
  transform: translateY(-20px);
}
.grid-item p {
  font-size: 25px;
}
.salary {
  font-size: 40px;
}

@media screen and (max-width: 640px){
  h1 {
    font-size: 40px;
  }
  .grid-item p {
    font-size: 16px;
  }
  .salary {
    font-size: 24px;
  }
}

@media screen and (max-width: 470px) {
  h1 {
    font-size: 30px;
  }
  .sub-title {
    font-size: 20px;
  }
}
</style>
